#define _CRT_SECURE_NO_WARNINGS 1
#include "newQueue.h"

void Test();
int main()
{
	Test();
	return 0;
}

void Test()
{
	Q qq;
	Init(&qq);
	QueuePush(&qq, 1);
	QueuePush(&qq, 2);
	QueuePush(&qq, 3);
	printf("%d ", GetQueueFrontNum(&qq));
	
	QueuePop(&qq);
	printf("%d \n", GetQueueFrontNum(&qq));

	QueuePush(&qq, 3);
	QueuePush(&qq, 4);
	QueuePush(&qq, 5);
	int head_num = GetQueueFrontNum(&qq);
	int tail_num = GetQueueBackNum(&qq);
	printf("%d %d\n", head_num, tail_num);

	printf("size = %d\n", Size(&qq));

	Destroy(&qq);
}